package com.cai.oamanager.dao;

import com.cai.oamanager.entity.Depart;
import com.cai.oamanager.entity.People;
import com.cai.oamanager.entity.Student;
import com.cai.oamanager.entity.TT;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.omg.CORBA.INTERNAL;
import org.omg.PortableInterceptor.Interceptor;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @version 1.0
 * @author：蔡松坡
 * @date：2021/1/16 22 : 09
 * @package：com.cai.oamanager.dao
 */
@Mapper
public interface StudentDao {

    Student login(@Param("sid") String sid, @Param("pwd") String pwd);

//    List<Student> getAllStudent(@Param("deid") Integer deid,@Param("sid") Integer sid,@Param("pid") String pid, @Param("start") Integer start, @Param("size") Integer size);
    List<Student> getAllStudent(@Param("people") People people,@Param("sid") Integer sid,@Param("start") Integer start,@Param("size") Integer size);

    Student getStudentById(@Param("id") Integer id);

    int getStudentCount(@Param("people") People people);

//    void updateStudent(@Param("student") Student student);

    List<Depart> getAllDepartByStudentIdOfDomain(Integer sid);

    List<People> getPeopleByDepart(@Param("departid") Integer departid);

    void editStudent(@Param("student") Student student);

    Integer getCountByDeid(@Param("deid") Integer deid);

    void addStudent(@Param("student") Student student);
}
